﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using HGZP.BLL;
using HGZP.DAL;
using HGZP.Model;

namespace SZCB.admin.Function
{
    public partial class FunctionManager : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                ViewState["wheresql"] = "";
               GetContentCount();
               BindContentData();

            }

        }

        #region 绑定内容表单()
        private void GetContentCount()
        {
            string sql = " ";
            /*if (ViewState["wheresql"] != null)
                sql += ViewState["wheresql"].ToString();*/
            CFunctionDataBLL myCFunctionBLL = new CFunctionDataBLL();
            returnDataPager.RecordCount = myCFunctionBLL.F09_GetCount(sql);
        }
        private void BindContentData()
        {
            string sql = " ";
            /*if (ViewState["wheresql"] != null)
                sql += ViewState["wheresql"].ToString();*/
            CFunctionDataBLL myCFunctionBLL = new CFunctionDataBLL();
            RptData.DataSource = myCFunctionBLL.F08_SelectColumnHaveWhereOrder_OnePage(returnDataPager.StartRecordIndex - 1, returnDataPager.PageSize, "*", sql, myCFunctionBLL.dCreateDate + " DESC");
            RptData.DataBind();
        }
        protected void ReturnDataPagerPageChanged(object sender, EventArgs e)
        {
            BindContentData();
        }
        #endregion

        protected void lbtnDelete_Click(object sender, EventArgs e)
        {

        }



    }
}